package com.sdwz.library.entity.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import com.sdwz.library.converter.LocalDateConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

@Data
public class BookExcelVo {

    @ExcelProperty("图书类别id")
    private String cateId;

    @ExcelProperty("书名")
    private String bookName;

    @ExcelProperty("作者")
    private String author;

    @ExcelProperty("封面")
    private String coverUrl;

    @ExcelProperty("出版社")
    private String press;

//    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty(value = "出版时间",converter = LocalDateConverter.class)
    private LocalDate publicationTime;

    @ExcelProperty("ISBN")
    private String ISBN;

    @ExcelProperty("简介")
    private String introduction;

    @ExcelProperty("馆藏数量")
    private Integer collectionQuantity;

    @ExcelProperty("价目")
    private BigDecimal price;

}
